package com.isi.mtl.lf.ex3.entites;

import java.util.Date;

public class Camion {

	/**
	 * 	Camion BDD Schema
	 * 	
	 * 	idCamion
		int(11)
		
		idModele
		int(11)
		
		anneeFab
		date
		
		anneeAchat
		date
		
		valeurEst
		double
		
		image
		varchar(255)
		
		idRack
		int(11)
		
		commentaires
		varchar(255)
		
	 * 
	 */
	
	private int idCamion;
	private int idModele;
	private Date anneeFab;
	private Date anneeAchat;
	private double valeurEst;
	private int idRack;
	private String commentaires;
	
	public Camion() {
		idCamion = 0;
		idModele = 0;
		anneeFab = new Date();
		anneeAchat = new Date();
		valeurEst = 0;
		idRack = 0;
		commentaires = "";
	}
	
	public Camion(int idCamion, int idModele, Date anneeFab, Date anneeAchat, 
			double valeurEst, int idRack, String commentaires) {
		
		this.idCamion = idCamion;
		this.idModele = idModele;
		this.anneeFab = anneeFab;
		this.anneeAchat = anneeAchat;
		this.valeurEst = valeurEst;
		this.idRack = idRack;
		this.commentaires = commentaires;
		
	}
	
	
	//Getters / Setters

	public int getIdCamion() {
		return idCamion;
	}

	public void setIdCamion(int idCamion) {
		this.idCamion = idCamion;
	}

	public int getIdModele() {
		return idModele;
	}

	public void setIdModele(int idModele) {
		this.idModele = idModele;
	}

	public Date getAnneeFab() {
		return anneeFab;
	}

	public void setAnneeFab(Date anneeFab) {
		this.anneeFab = anneeFab;
	}

	public Date getAnneeAchat() {
		return anneeAchat;
	}

	public void setAnneeAchat(Date anneeAchat) {
		this.anneeAchat = anneeAchat;
	}

	public double getValeurEst() {
		return valeurEst;
	}

	public void setValeurEst(double valeurEst) {
		this.valeurEst = valeurEst;
	}

	public int get_idRack() {
		return idRack;
	}

	public void set_idRack(int idRack) {
		this.idRack = idRack;
	}

	public String get_commentaires() {
		return commentaires;
	}

	public void set_commentaires(String commentaires) {
		this.commentaires = commentaires;
	}

}
